package com.dhecp.project.logstics.mapper;

import com.dhecp.core.genericDao.GenericDao;
import com.dhecp.project.logstics.domain.FbaLogisticsReconcileSon;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 物流对账详情(TP_FbaLogisticsReconcileSon)表数据库访问层
 *
 * @author fxz
 * @since 2022-10-29 23:27:23
 */
public interface FbaLogisticsReconcileSonMapper extends GenericDao<FbaLogisticsReconcileSon, String> {

       /**
    * 查询列表数据
    */
    List<FbaLogisticsReconcileSon> queryList(Map<String, Object> params);
    /**
     * 通过ID查询单条数据
     *
     * @param params 参数
     * @return 实例对象
     */
     FbaLogisticsReconcileSon selectFirstRecordByNid(Map<String, Object> params);

    /**
     * 通过对账单code查询详情数据
     * @param code
     * @return
     */
    List<FbaLogisticsReconcileSon> queryListCode(@Param("code") String code);

    int deleteCodeReconcile(@Param("code") String code);

    /**
     * 根据订单编号修改状态
     * @return
     */
    int updateByState(FbaLogisticsReconcileSon entity);

    /**
     * 根据code修改二次对账状态
     */
    int updateByStateEcName(@Param("logisticsOrderCode") String logisticsOrderCode,@Param("stateEcName")String stateEcName);

}

